package cn.kgc.bilibili.service.impl;

import cn.kgc.bilibili.dao.VideoMapper;
import cn.kgc.bilibili.pojo.Video;
import cn.kgc.bilibili.service.VideoService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service("videoServiceImpl")
public class VideoServiceImpl implements VideoService{
    @Resource
    VideoMapper videoMapper;

    public VideoMapper getVideoMapper() {
        return videoMapper;
    }

    public void setVideoMapper(VideoMapper videoMapper) {
        this.videoMapper = videoMapper;
    }

    @Override
    public List<Video> selectVideos(String title) {
        return videoMapper.selectVideos(title);
    }

    @Override
    public int addvideo(Video video) {
        return videoMapper.addvideo(video);
    }

    @Override
    public Video selectuuid(String avid) {
        return videoMapper.selectuuid(avid);
    }

    @Override
    public List<Video> selecttype() {
        return videoMapper.selecttype();
    }

    @Override
    public List<Video> selecttg() {
        return videoMapper.selecttg();
    }

    @Override
    public List<Video> selectyy() {
        return videoMapper.selectyy();
    }

    @Override
    public Video selectid(int id) {
        return videoMapper.selectid(id);
    }

    @Override
    public List<Video> selectzd() {
        return videoMapper.selectzd();
    }
}
